package com.diligent.cloud.sfc.service;

import com.canny.commons.model.ListResult;
import com.canny.commons.model.ObjectResult;
import com.canny.commons.model.Result;
import org.springframework.http.ResponseEntity;

import java.security.Principal;

/**
 * ProdBatchService class
 *
 * @author xf107278
 * @date 4/2/2020
 */
public interface ProdBatchService {
    ResponseEntity<Result> updateBatchStatus(String prodBatch, Long systemId, Principal principal);

    /**
     * 作废批
     */
    ResponseEntity<Result> cancellationProdBatch(Long mdId, String prodBatch, Long systemId,Long orderId, Principal principal);

    ResponseEntity<ObjectResult> getBatch(String machCode, Long systemId, Principal principal);

    ResponseEntity<ObjectResult> getLastOneBatch(String machCode, Long systemId, Principal principal);

    ResponseEntity<ObjectResult> getLastOneBatchByCart(String machCode, Long systemId, Principal principal);

    ResponseEntity<ObjectResult> getMatStatisticsConsumeByProdBatch(String startTime, String endTime);

    ResponseEntity<ListResult> getProdBatchByMachCode(String machCode, Integer isFinished,Long pageIndex,Long pageSize);

}

